package com.globallogic;
import junit.framework.Test;

import com.globallogic.Iterator;

public class ForTest {

	public static void main(String[] args) {

		OurList<String> listTest = new OurList<String>();
		listTest.add("1");
		listTest.add("2");
		listTest.add("3");
		listTest.add("4");
		listTest.add("5");

		System.out.println();

		Iterator<String> itr = listTest.iterator();

		System.out.println();
		itr = listTest.iterator();
		while (itr.hasNext()) {
			System.out.println(itr.next() + " : " + itr.hasNext());
			itr.remove();
		}
		
		System.out.println("\nSize: "+listTest.size());

		System.out.println("____________________");
		

		
	}

}
